<?php

include_once('FavoritesService.php');


	if(isset($_POST['userId']) && !empty($_POST['userId'])
	   && isset($_POST['foodId']) && !empty($_POST['foodId'])){
		$savFav = new FavoritesService();

		$userId = $_POST['userId'];
		$foodId = $_POST['foodId'];

		$results = $savFav->deleteFav($userId, $foodId);

	}

?>
